package com.chenyongjing.design.pattern.chain.auth.builderchain;

import com.chenyongjing.design.pattern.chain.auth.Member;

/**
 * @Author chen
 * @Date 2022/11/17 22:32
 */
public class AuthHandler extends Handler {
    @Override
    public void doHandler(Member member) {
        if(!"管理员".equals(member.getRoleName())){
            System.out.println("您不是管理员，没有操作权限");
            return;
        }

        System.out.println("允许操作");
    }
}
